<template>
    <div>
        <h1>我是你爸爸 {{val}}</h1>
        <button @click="$emit('changeVal',val)">按钮</button>
    </div>
</template>
<script>
export default {
    data() {
        return {
            val:123456
        }
    },
}
</script>